package com.gage.mapper;

import org.apache.ibatis.annotations.Param;

import com.gage.model.BsDepartmentUser;

public interface BsDepartmentUserMapper {
    int deleteByDepartmentIdAndUid(@Param(value = "departmentId")Long departmentId, @Param(value = "userId")Long userId);

    int insert(BsDepartmentUser record);

    int insertSelective(BsDepartmentUser record);

    int getAssignUserCount(@Param(value = "departmentId")Long departmentId);

    int updateByPrimaryKeySelective(BsDepartmentUser record);

    int updateByPrimaryKey(BsDepartmentUser record);
    
    BsDepartmentUser selectDepartmentIdByUserIdAndType( @Param(value = "userId")Integer userId,@Param(value = "type")Integer type);
}